package com.songlanyun.modules.article.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * 文章内容表
 *
 * @author wuchao
 * @email sunlightcs@gmail.com
 * @date 2021-02-27 15:36:01
 */
@Data
@TableName("yxt_article_content")
public class ArticleContent implements Serializable {
    private static final long serialVersionUID = 1L;

    public ArticleContent() {
    }

    public ArticleContent(Long articleId, String content, String mediaAddress, Long mediaSize, Integer duration) {
        this.articleId = articleId;
        this.content = content;
        this.mediaAddress = mediaAddress;
        this.mediaSize = mediaSize;
        this.duration = duration;
    }

    /**
     *
     */
    @TableId
    private Long id;
    /**
     * 文章id
     */
    private Long articleId;
    /**
     * 文章内容
     */
    private String content;
    /**
     * 视频地址
     */
    private String mediaAddress;
    /**
     * 文件大小
     */
    private Long mediaSize;
    /**
     * 播放时长（单位秒）
     */
    private Integer duration;

}
